package com.secsys.dto;

import java.util.Date;

import com.secsys.model.TbSysContent;

public class SysContentDTO {
	private Integer id;
	private String title;
	private String content;
	private String type;
	private Integer authorId;
	private Date createDate;
	
	
	public SysContentDTO(TbSysContent tbSysContent) {
		super();
		this.id = tbSysContent.getId();
		this.title = tbSysContent.getTitle();
		this.content = tbSysContent.getContent();
		this.type = tbSysContent.getType();
		this.authorId = tbSysContent.getAuthorId();
		this.createDate = tbSysContent.getCreateDate();
	}
	
	public SysContentDTO(Integer id, String title, String content, String type,
			Integer authorId, Date createDate) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.type = type;
		this.authorId = authorId;
		this.createDate = createDate;
	}
	public SysContentDTO() {
		super();
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getAuthorId() {
		return authorId;
	}
	public void setAuthorId(Integer authorId) {
		this.authorId = authorId;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	
}
